package com.yeyks.account.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import java.io.Serializable;

@ApiModel(description = "登录输入参数")
@Data
public class LoginParam implements Serializable {

    private static final long serialVersionUID = -513556059700540317L;

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "账号类型",dataType = "1")
    @NotBlank(message = "账号类型不能为空")
    private String type;

    @ApiModelProperty(value = "手机验证码",hidden = true)
    private String code;
}
